package com.itheima.api.client;

import com.itheima.api.client.fallback.ItemClientFallbackFactory;
import com.itheima.api.vo.Goods;
import com.itheima.common.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;

@FeignClient(value="item-service", fallbackFactory = ItemClientFallbackFactory.class)
public interface ItemClient {
    @GetMapping("/items/list")
    public Result<List<Goods>> list();
}
